<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Contato</title>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/style.css"/>
    <script type="text/javascript" src="<?php echo base_url() ?>js/jquery-1.6.js"></script>
    <script type="text/javascript" src="<?php echo base_url() ?>js/jquery.validate.js" ></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>js/validate_form.js"></script>
  </head>
  <body>
    <?php
    include ("includes/nav_bar.php");
    ?>
    <div id="main-content">
      <div id="conteudo">
        <form action="<?php echo base_url() ?>pagina/enviar_contato" method="post" id="form_contato" class="form_contato">
          <h1 style="width: 70%; margin: 0 auto 10px;">Fale Conosco</h1>
          <?php if (isset($view_msg))
            echo $view_msg; ?>
          <p><label class="medio" for="nome">Nome:</label><input type="text" name="nome" value="<?php if (isset($view_nome))
            echo $view_nome; ?>" class="grande" id="nome"/></p>
          <p><label class="medio" for="email">Email:</label><input type="text" name="email" value="<?php if (isset($view_email))
                                                                   echo $view_email; ?>" class="grande" id="email"/></p>
          <p><label class="medio" for="tipo">Tipo:</label><select name="tipo" id="">
              <option value=""></option>
              <?php foreach ($view_tipocontato as $tipo): ?>
                <option value="<?php echo $tipo->pk_int_idTipo; ?>"><?php echo $tipo->char_nome; ?></option>
              <?php endforeach; ?>
            </select>
          </p>
          <p><label class="medio" for="mensagem" style="vertical-align: top;">Mensagem:</label><textarea name="mensagem" cols="10" rows="10" id="mensagem"><?php if (isset($view_mensagem))
                echo $view_mensagem; ?></textarea></p>
          <p><input type="submit" name="enviar" value="Enviar" class="btn"/></p>
        </form>
      </div>
    </div>
  </body>
</html>
